package cn.itsource.org.service;

import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;
import cn.itsource.base.util.PageBean;

import java.util.List;

public interface IDepartmentService {
    //基础查询
    void save(Department dept);

    void remove(Long id);

    void update(Department dept);

    Department findById(Long id );

    List<Department> findAll();

    /**
     * 分页查询
     *
     */
    //查询总条数
    Integer queryCount(DepartmentQuery query);
    //查询当前的页数
    PageBean<Department> queryData(DepartmentQuery query);

    void patch(List<Long> ids);

    List<Department> getDeptTree();
}
